const mongoose = require("mongoose")
const staffSchema = new mongoose.Schema({
    employee_id:{
        type:String,
        unique:true,
        required:true
    },
    employee_name:{
        type:String,
        unique:false,
        required:true
    },
    employee_zhiwei:{
        type:String,
        unique:false,
        required:true
    },
    phone:{
        type:Number,
        unique:true,
        required:true
    },
    email:{
        type:String,
        unique:true,
        required:true
    },
    head_img:{
        type:String,
        unique:false,
        required:false
    }
})
module.exports=mongoose.model("staffs",staffSchema)